﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.NET.Core
{
    /// <summary>
    /// 巡检车信息表
    /// </summary>
    [Table("IT_CarInfo")]
    [Comment("巡检车信息表")]
    public class CarInfo: DEntityBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Comment("名称")]
        [Required, MaxLength(20)]
        public string Name { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        [Comment("名称")]
        [Required, MaxLength(20)]
        public string CarNum { get; set; }

        /// <summary>
        /// 默认GPS
        /// </summary>
        [Comment("默认GPS")]
        [MaxLength(50)]
        public string GPS { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Comment("状态")]
        [MaxLength(4)]
        public string Status { get; set; }
        /// <summary>
        /// 是否在线
        /// </summary>
        [Comment("是否在线")]
        [MaxLength(4)]
        public string OnLine { get; set; }
        /// <summary>
        /// 最大速度
        /// </summary>
        [Comment("最大速度")]
        public double Speed { get; set; }
        /// <summary>
        /// 行驶里程
        /// </summary>
        [Comment("行驶里程")]
        public double Mileage { get; set; }
    }
}
